package com.hanson.common.exception;

import lombok.Data;

@Data
public class BusinessException extends RuntimeException  {

    private static final long serialVersionUID = -994962710559017255L;

    private int code = 0;
    private String msg;

    public BusinessException(String msg) {
        super(msg);
        this.msg = msg;
    }

    public BusinessException(int code, String message) {
        this.msg = message;
        this.code = code;
    }
}
